package org.openzip.openzip.archiving.gui;

import java.io.File;
import java.util.Collection;

import javax.swing.DefaultListModel;
import javax.swing.JList;
import javax.swing.ListModel;

import org.openzip.openzip.archiving.logic.IObservable;
import org.openzip.openzip.archiving.logic.IObserver;

public class ObservingJList extends JList implements IObserver {
	
	private DefaultListModel model;
	
	public ObservingJList(DefaultListModel model) {
		this.model = model;
	}
	
	public ObservingJList() {
		model = new DefaultListModel();
	}

	public void update(IObservable o, Collection<File> files,
				boolean added){
		
		model.removeAllElements();

	}
	
	
}
